slint::slint! {
    export component FileDialog {
        in property <string> file-type;
        
        // 根据包类型设置过滤器
        property <[string]> filters <= {
            match root.file-type {
                "linglong" => [ "玲珑包 (*.lling *.uab)" ],
                "flatpak" => [ "Flatpak Bundle (*.flatpak)" ],
                "snap" => [ "Snap Package (*.snap)" ],
                * => [] 
            }
        };
    }
}